import os
import sys
from pathlib import Path
from dotenv import dotenv_values
from munch import Munch

settings = Munch.fromDict({
    **dotenv_values("/home/kv/workspace/big_data_database/hospital_web_data_process/config.env"),
    **os.environ
})

# settings2 = Munch.fromDict({
#     **dotenv_values(str(Path(sys.argv[0]).parent / 'config2.env')),
#     **os.environ
# })
